<template>
    <div>
    <el-form :inline="true" :model="formInline" class="demo-form-inline">
        <el-form-item  label="手机号">
            <el-input  v-model="uid" placeholder="手机号"></el-input>
        </el-form-item>
    <el-form-item label="活动区域">
        <el-select  placeholder="活动区域">
            <el-option label="区域一" value="shanghai"></el-option>
            <el-option label="区域二" value="beijing"></el-option>
        </el-select>
    </el-form-item>
    <el-form-item>
        <el-button type="primary" @click="onSubmit">查询</el-button>
    </el-form-item>
</el-form>
    <template>
      <el-table
        :data="users"
        style="width: 100%"
        :row-class-name="tableRowClassName">
        <el-table-column
          prop="optrdate"
          label="日期"
          width="180">
        </el-table-column>
        <el-table-column
          prop="name"
          label="姓名"
          width="180">
        </el-table-column>
        <el-table-column
          prop="dname"
          label="地址">
        </el-table-column>
      </el-table>
    </template>
  </div>
</template>

<script>
//引入api接口
import ggkConfig from "@/api/ggkConfig";

  export default {
    data() {
      return {
        users:[],
        uid:''
        
      }
    },
    created(){
        this.onSubmit()
    },
    methods: {
     onSubmit(){
       this.users=[]
       ggkConfig.getUserInfo(this.uid).then(res =>{
          this.users=res.data
        })
     }
    }
  }
</script>